#include "StompedReality/Asset/TextureSystem.h"
#include "StompedReality/Core.h"
#include <UnitTest++.h>
static const StompedReality::ID NEW_OBJECT_ID_ADD = 0x10000;
SUITE ( Texture_System_Test )
{
  TEST ( Texture_Info_Test )
  {
    StompedReality::Asset::TextureInfo info;
    info.glBinding = 123;
    info.width = 200;
    info.height = 100;
    CHECK_EQUAL ( 123, info.glBinding );
    CHECK_EQUAL ( 200, info.width );
    CHECK_EQUAL ( 100, info.height );
  }
  TEST ( Texture_System_Test )
  {
    StompedReality::Asset::TextureSystem system;
    system.Initialize ( 5 );
    StompedReality::ID id = 0;
    system.OpenTexture ( id,
                         "Content-StompedRealityUnitTest/soldier_full.png" );
    const StompedReality::Asset::TextureInfo infoCheck = system.GetTextureInfo ( id );
    CHECK_EQUAL ( 64, infoCheck.width );
    CHECK_EQUAL ( 96, infoCheck.height );
  }
}
